package com.fzkj.set;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {

        Set<User> set = new HashSet<>();
        set.add(new User("小王",20));
        set.add(new User("小王",20));
        set.add(new User("小蓝",20));
        set.add(new User("小里",20));

        System.out.println(set);
    }
}
